<@s.actionerror theme="bootstrap"/>
<@s.actionmessage theme="bootstrap"/>
<@s.fielderror theme="bootstrap"/>
<@s.form action="add" method="post" theme="bootstrap" cssClass="form-horizontal" id="personform">
	<@s.hidden name="person.id" />
	<@s.textfield name="person.firstName" label="First Name" required="true" cssClass="span3" />
	<@s.textfield name="person.middleName" label="Middle Name" cssClass="span3" />
	<@s.textfield name="person.lastName" label="Last Name" cssClass="span3" />
	<div class="control-group">
		<label class="control-label" for="#_birth">Birthdate</label>
		<div class="controls">
			<input name="person.birthdate" placeholder="yyyy-mm-dd" data-datepicker="datepicker" class="span2" type="text" id="#_birth" value="${(person.birthdate?string("yyyy-MM-dd"))!}" />
		</div>
	</div>
	<#assign genders = {'0' : 'Male', '1' : 'Female'}>
	<@s.radio name="person.gender"  list=genders listKey="key" listValue="%{getText(value)}" value="${person.gender!0}" label="Gender" />
	<@s.textarea name="person.address" label="Address" rows="4" cssClass="span4"></@s.textarea>
	<div class="form-actions">
		<button value="Save" class="btn btn-primary">Save</button>
		<input type="reset" class="btn" />
	</div>
</@s.form>